<%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2023-04-07
  Time: 10:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>cookie信息</title>
</head>
<body>
<h1>本机的cookie有：</h1>
<%

    Cookie[] cookies = request.getCookies();
    if (cookies != null) {
        for (Cookie c : cookies) {
            out.print("<h2>" + c.getName() + "=" + c.getValue() + "</h2>");
        }
    }
%>
</body>
</html>
